<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>v-on绑定随机数</title>
		<script src="vue.js"></script>
	</head>

	<body>
		<<div id="app">
			<button v-on:click="count+=Math.random()">生成随机数</button>
			<p>生成最新的随机数是：{{count}}</p>
			</div>
	</body>
	<script>
		var vm = new Vue({
			el: "#app",
			data: {
				count: 0,
			}
		})
	</script>

</html>